import request from '@/utils/request'

export function getShare(data) {
  return request({
    url: '/api/ShareManage/GetList',
    method: 'post',
    data: data
  })
}

export function saveShare(data) {
  return request({
    url: '/api/ShareManage/Save',
    method: 'post',
    data: data
  })
}

export function delShare(data) {
  return request({
    url: '/api/ShareManage/Delete',
    method: 'post',
    data: data
  })
}

export function toggleValidShare(data) {
  return request({
    url: '/api/ShareManage/Valid',
    method: 'post',
    data: data
  })
}

export function getShareDetail(data) {
  return request({
    url: '/api/ShareManage/GetById',
    method: 'post',
    headers: {
      hideToast: true
    },
    data: data
  })
}
export function GetOrderType(data) {
  return request({
    url: '/api/ShareManage/GetOrderType',
    method: 'post',
    headers: {
      hideToast: true
    },
    data: data
  })
}
